making the locking defines so that we get the line it locks the lock.