files_initial_transaction_commit(): only unlock if locked