[PATCH 6.11 105/107] lib/buildid: Fix build ID parsing logic