Add comment regarding recent OSGi change.
Remove unused parameters.
Add optional OSGi import for sun.reflect.

  - In order to access JDK classes outside java.* in an OSGi environment, they must be exported by the framework.
  - Similar to how LMAX Disruptor has an Import-Package dependency on sun.misc, we have an optional import for sun.reflect.
Remove capability mumbo jumbo.

  - Using a lock in log4j-api (ProviderUtil) has prevented the need for this hack in OSGi.