ASACORE-882 Fixed multiple memory leaks

Fixed possible bug in MethodTable that could have caused an
infinite wait. Found while fixing memory leaks.

Tests added to the MsgArgTest code to investigate the behavior
of the SetOwnerShipFlag member function and how it treats memory.

Change-Id: Ia4d3d762fadf52a03575885b893e93bd4964b62c
Signed-off-by: George Nash <georgen@qce.qualcomm.com>