pub fn with_global_lock<F, R>(f: F) -> Rwhere F: FnOnce() -> R,
Ensure only one test that modifies global state runs at a time