Fix the locks table so it actually works. @0h30