Just unlock the target by pressing 'C' or from the configuration menu.

Locking onto targets was only useful in Beta when characters needed to have a line-of-sight for attacks to hit. Now that players automatically face the target when attacking, there's no point locking on anyway. So just disable it.