Expiration cleanup

* fixes crash caused by object key use past its transaction lifetime
* fixes deadlock caused by table locking in Tx APIs
* minor cleanup

This version has been running well for extended periods of time.

@benbjohnson 

/cc @snormore @charlescng