Fix EZP-22146: roles applied to many users cause fatal errors

This PR resolves issue https://jira.ez.no/browse/EZP-22146

The problem is solved by removing `SPIRole::groupIds` array.

This required implementing previously not implemented method `UserHandler::loadRoleAssignmentsByRoleId()` and refactoring of several API and SPI methods.