Fix issue in simple broker with peer-to-peer messages

Issue: SPR-10930
Fix issue with getting SockJS path

Issue: SPR-10923
Prevent cache of sockjs known prefixes from growing

Issue: SPR-10893