Do not cleanup global allocations if threads are still active.
Make AIX password hash matching regex slightly more robust.
Merge pull request #1844 from jimis/master

Do not cleanup global allocations if threads are still active.