exchange: use the postclose API on transaction
As with changegroup, we should wait for the transaction to be really closed
before scheduling hook execution.
................----------------------------------------------------------------------Ran 16 tests in 0.000sOK