SLING-6328 - JSP concurrent compiling issue - backport changes from original bugzilla issue #45691: http://svn.apache.org/r707745