Add missing cvar locking that was breaking things!