[coreboot-gerrit] Change in coreboot[master]: src/commonlib/bsd: Fix bugs introduced with CB:59195