Lock context of (de)activate.