Fix some test theoretical lock inversions