Fix race condition in the mocked owserver startup