OAK-1890: Concurrent System Login: slowdown for high concurrency levels
periodically purge scheduler queue to remove cancelled tasks

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