[Permission] make CheckAPIAccessControl as static method

* In order to make t-e-c instance can call permission API directly,
  adjust the method to static. After that, message handlers of each
  instance can call common::Extension::CheckAPIAccessControl to check
  whether current extension has the permssion to access.