Ensuring locks are always eventually released by expiring the cache key
after a period of time. Added ability to specify a timeout for the lock
block (10 seconds less than the lock expiry). Fixed bug in the test
suite that caused false negatives due to a race condition when setting
test helper's lock cache.