HHH-7478 - Registering transaction completion process inside event listener for audited entity

Patch and test for HHH-7478 JIRA ticket.
Link: https://hibernate.onjira.com/browse/HHH-7478

@sebersole: You might want to check validity of use case presented in the JIRA ticket.

Regards,
Lukasz Antoniak