Fixed some bugs with unit transfers

* Fixed bug with units not returned to their original owner in Share until death mode.
* Removed duplicate function TransferUnitsOwnership() in aibrain.lua,
  using SimUtils.lua version instead

* Units didn't get correct XP when getting more XP than the next level.
* XP points are now transferred when giving units