tests: match time by a glob to fix intermittent failures of test-lock-badness.t

Sometimes the lock was a bit slower and took 2 seconds. Do not fail the test by
this.
The glob ? matches from 0 to 9 seconds, which should be enough safety.