SLING-3189 - slightly modified version of Chetan's patch which if needed waits for SLF4J in a separate thread

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1534615 13f79535-47bb-0310-9956-ffa450edef68