liblp: Add MetadataBuilder helpers for pruning unused groups.

These will help update_engine clear the target slot before applying an OTA.

Bug: 117182932
Test: liblp_test gtest
Change-Id: I6ad370e617f22f2098245a0028a93488f9ac8674
4 files changed