Improve the access checks for linked global resources to handle the case where the current class loader is a child of the web application class loader.