Fix "lock acquisition failed" log

This log was coming everytime the method inside with_lock errored. Now,
it'll come when lock acquistion actually fails
Updated tests to consider logs too
Merge pull request #480 from rackerlabs/lock_log_fix

Lock log fix