XCOMMONS-421: Add API to dispose resources initialized by org.xwiki.environment.System
(cherry picked from commit fc8ace178de1c13c60dd9f99158d56ff2f44a536)