New attribute lockAcquired to keep track if the lock was acquired