Fix timing issue with obtaining async result

Issue: SPR-11516
Use unmodifiable set in AbstractSockJsSession