Fixed some bugs with unit transfers

* Removed duplicate function TransferUnitsOwnership() in aibrain.lua,
  using SimUtils.lua version instead

* Fixed bug with units not returned to their original owner in Share until death mode.