Fix a couple of things reported by Fujii-san

Among those things:
- better docs
- use spinlock when looking at write and flush values of each WAL sender
- Check value of synchronous_standby_num.