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