st/oxr: add more checks around xrBeginSession and xrEndSession