Fix lock test.