extra-build-dependencies: Allow version specifiers if match-runtime is explicitly false (#15420)
## Summary
`match-runtime` can be explicitly specified, and if it's `false` it
should behave the same way as if it's omitted.
## Test Plan
Added snapshot test