ISPN-4056 Enable caching of permission masks to cluster registry

https://issues.jboss.org/browse/ISPN-4056

also fixes a couple of bugs that were affecting the test.
@tristantarrant doesn't WildFly rely on injecting an actual Transport instance with a JChannel set? If not, I would propose going further, and removing the Transport (and any other objects that cannot be safely reused between caches/managers) from the configuration.