MDL-22309 accesslib: Preventing incorrect get_role_users() uses

Also fixing current incorrect uses of the function.