Issue #2398259 by Berdir: Random test fail in AccessRoleTest