Fixes #3257: Fixes the permlist loading limit which is too restrictive f...

...or large permlists

To be merged in the 2.3 branch.

Bug: https://www.rudder-project.org/redmine/issues/3257