Clock generation lock