files_transaction_prepare(): don't leak flags to packed transaction