Correct potential deadlock in ClientStorage:tpc_begin by being sure to release locks in a finally block.