another attempt at fixing the CI flakiness by waiting for a thread to start