NXP-13148, NXP-9962: move query result autoclose down to SessionImpl
NXP-13148, NXP-14122: make EventService deal with transaction end, not CoreSession
NXP-14140: make CoreSession thread-safe
NXP-13925: improve SQL Server duplicate row prevention
NXP-14140: better message when closing CoreSession from wrong thread