certify_bootimg: avoid using subprocess calls to unpack_bootimg am: ac2f0c28b2 am: f149ca0d9a am: aef5320af0 am: 4e8e1365bd am: 55f31eb54b am: 1780d63618

Original change: https://android-review.googlesource.com/c/platform/system/tools/mkbootimg/+/2038863

Change-Id: Ie746c9041143d9a1976258cfc99063211c6605c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>