CARBON-14963

Fix contain a wrapper class for **org.wso2.carbon.registry.api.Registry** called **PrivilegedUserRegistry.java** , which uses privileged block API for each registry operation.
Use of privileged block API ensures that the registry operations will not fail due any permission issue when using the Java Security Manager with WSO2 products.