NXP-14367: fix session core session leak in webengine test