[PATCH 5.10 098/122] perf bench inject-buildid: Handle writen() errors