Refresh policies when switching security manager in rmi transport to avoid stale policies