SERVER-5553 Use malloc-free ostream in signal handlers