Make sure there are no lingering threads when we clean up.
Add dummy_etc directory in source tarball.
remake_outputs.pl was missing from the source tarball.
Merge pull request #1772 from jimis/master

3.6.x changes missing from master.
Leak-fix: destroy policy that fails partial check.

When LoadPolicyFile() loads a policy, it PolicyCheckPartial()s it;
if this failed, it leaked the policy while returning NULL.
Leak-fix: close the signal pipe on exit().
Leak-fix (FD): close socket when aborting on failure to lock.

That's in cf-serverd's StartServer().  Also avoid using an invalid
socket; if OpenReceiverChannel() fails to bind, it closes the socket
it just tried to use, so we should reset the socket variable to -1 so
we don't try to re-use the socket we just closed.  Split a long line.
Fix leaked fallback Rlist.

When the common control gives no bundle sequence, we used { "main" }
as fall-back for it; however, this fallback list wasn't getting
cleared away (and the fact that we were modifying the NULL list we got
back const-qualified was provoking a compiler warning - which is what
brought this to my attention).
Refined .gitignore; stamp-h1 can land all over the place.

It would seem the autotools create random files called stamp-h1 in
random places.  Ignore all of them !