[PATCH 5.15 037/565] lib/buildid: Fix build ID parsing logic