(putgrent): Unlock steam if fprintf failed. Add __builtin_expect where useful.