Made changes to register the BeforeTransactionCompletionProocess on
demand when the there is already a thread bound session - SYNC-287