[flashrom] [PATCH] serprog: optimize serial buffer handling