[AS7-6310] Add RuntimePermissions and permission checks to access the RemotingContext if running with a SecurityManager.