Fixed failing lock test.