fixed server bug for locking system
! fixed server bug for locking system where wrong variable
  was being used to lock and unlock causing strange
  behavior