NXP-14140: better message when closing CoreSession from wrong thread