ENGINE-1582, fixed registerSynchronization() when no active transaction is started