Charge density wave and lock-in transitions of CuV2S4