Merge changes from topic "jun1" into rvc-dev

* changes:
  Flip ENABLE_DYNAMIC_PERMISSIONS, attempt #4.
  Remove thread delegation when checking grants.