Added elision of lock iff multiple threads entering lock.