Fix race condition between Pub/Sub and UserID update.