The lock on missile animation continues to play, irrespective of what other hotbar slots contain upon switching weapons.
When you click with this animation present, Lock On missiles will cease to perform any locking on at all, regardless of time spent looking at a single entity.