meson: Don't override `opt_name` in the preconditions loop
The same variable name was used, causing the last precondition to become
the opt_name
. This change fixes the check to determine if a given
dependency is required.
Signed-off-by: Kacper Michajłow kasper93@gmail.com