fix when trying to get locks for non-trans but lose the txn hash resulti...

...ng in a key error