NXP-11624: fix CoreInstance.getSessions thread-safety