Fix hub memory cleanup

:Release Notes:
Fixed hub memory cleanup for clients and roles.

:Detailed Notes:
All memory cleanups related to clients and roles were reviewed and fixed.

:Testing Performed:
Unit-tests were run. Hub was tested.

:QA Notes:

:Issues Addressed:
[GF-45291] LS2: Investigate and fix potential memory leaks

Open-webOS-DCO-1.0-Signed-off-by: Alexandr Smoktal <alexandr.smoktal@lge.com>

Change-Id: Id1a34526cc0018e40ec304acebc1caa17404b1a6
Reviewed-on: https://g2g.palm.com/3916
Reviewed-by: DCO Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>