Added the ability to non-block on the lock