Wrapper class for JAccess to get rid of static methods

Reference: https://github.com/joomla/joomla-cms/pull/4717

This PR introduces a wrapper class for the JAccess class to get rid of the static methods to improve the testing basis of the code for our PHPUnit tests!

The static methods (and the wrappers) will be removed completely in Joomla! 4.x.