[PATCH 6.11 408/558] lib/buildid: harden build ID parsing logic