[biserver-8382] workaround deadlocks with CompiledPermissions clearCache and canRead
Merge pull request #226 from webdetails/biserver8382

[biserver-8382] workaround deadlocks with CompiledPermissions' clearCache and canRead