[C] Fix setting entity's target. Fixes BUKKIT-1358.

Setting the goal target overrides the entity's will to do something
else. This makes it so entities like wolves with attack another player
with .setTarget(), instead of hanging next to their owner.