Fixed bug with setUserRole in UserRole class because of dispatch_barier_asynch.