[PATCH 5.14 142/168] perf bench inject-buildid: Handle writen() errors