[PATCH 6.6 59/82] lib/buildid: Fix build ID parsing logic