Free the static DMA buffer holding the command ring during detach as well
as if attach fails.
Merge r267837 from ^/projects/release-debugdist:
  When building world when WITH_DEBUG_FILES is set,
  avoid building ar(1) archives with '-g'.

Tested on:	head@r267801
Reviewed by:	emaste, imp
Sponsored by:	The FreeBSD Foundation