bug/511_lseek_before_writing_log_lines

### Description
Performing an lseek before each write.
This extra system call is necessary as the broker isn't informed about the fact that logrotate empties the broker's log file every now and then.
If this lseek isn't done, the broker's log library will write far out from the end of the file is a newly emptied logfile and this causes the size of the file to look very big (as big as brefore emptying the file + the newly written but starting with a big 'file-hole') and monit will react upon this BIG log file and restart the broker.

This PR fixes issue #511.