Fix pt_out() that can loose a message if the trace file can't be opened.
Fix pt_out() that can loose a message if the trace file can't be opened.

rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula