Dynamics of vortex lock-on in a perturbed cylinder wake