Add missing LockTaskData in DetectFreeFlying
Prevent buffer overflow in DetectFreeFlying if language string is too long.