Fix possible race condition in registry builder