[RFC] Minor buffer.c style cleanups

Just some minor cleanup. Feel free to ignore as needless churn. I think in particular adding the brackets to `FOR_ALL_TAB_WINDOWS` is useful though since it is very confusing to read otherwise.
Indeed, number of lines was kept short but it seemed like very unidiomatic C, and that makes it hard to read. (and scary to new contributors).