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