Lwt_log: get backtrace early to overcome exns in Printexc.to_string.

If 3rd-party code registers a printer function that raises (and then captures) an exception,
the original backtrace will be overwritten. This happens in particular with `Netexn`.