Make RoleAssignment thread-safe