Smarter locking for recording mined txs.