SERVER-12110 Safe buffer handling in SSL pw callback