Perhaps update the docstring to reflect the fact that this test fails to acquire the lock the first time but succeeds the second time?