[PATCH 6.1 38/73] lib/buildid: Fix build ID parsing logic