fix(library/module): potential deadlock when child thread threw an exception

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
fix(util/stackinfo): on OSX Boost does not seem to be based on pthread library

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>