patch: Bring in xstrdup and use it when appropriate.

The function savestr allows NULL return values during Plan A patching so in
case of out of memory conditions, Plan B can step in.  In many cases, NULL
value is not properly handled, so use xstrdup here (it's outside Plan A/B
patching, which means that even Plan B relies on successful operations).

Clean up some whitespaces while here

Obtained from:	OpenBSD
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update mandoc to 1.13.2


git-svn-id: svn+ssh://svn.freebsd.org/base/head@276219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f