Computer Architecture tutorial 2, Locking