add additional synchronization to run lock spec

I think this should fix race conditions observed in Ci. Will try to stress test in Ci (once it's back) to verify.