Make view_execution_permitted use _get_registry in pyramid.security.