I don't think the problem is related to target lock. I play without lock on and I have the same issues with shift+# not working all the time. I will try to do it the way you described and see if that will make it so it does work all the time. Sure does make it extremely inconvenient with groups of mobs if this is the case.