raise exception on scheduler lock timeout
Merge pull request #540 from pdvyas/enable-locktimeout

raise exception on scheduler lock timeout
Fixed scheduler error logging
Merge pull request #542 from anandpdoshi/hotfix

Fixed scheduler error logging
Added Don't Apply Restrictions (dont_restrict) in DocPerm, Changed restrict to can_restrict
Fixed build match condition in db_query
Test dont_restrict, fixes in permissions
Added partial permissions test case, fixes in restricted