Revert "Use a global lock on ProfileRegistry instead of individual ProfileVersion locks."