Phasing in and phasing out protectionism with costly adjustment of labour