Handling pending RegisterProfile callbacks was wrong as it forgot that there can be multiple profiles to be registered. Fix the handling by allowing several concurrent register callbacks.