[Linaro-uefi] [PATCH V2 03/12] Refactor get_parent_handle for sharing