fsearch: keep track of stdout offset if needed

When stdout points to a file and not a pipe write atomicity is not
guarantied. Detect that stdout is a regular file and keep track
of its offset using a atomic offset variable in user space.
47 jobs for fsearch-track-outfile-offset in 12 minutes and 37 seconds (queued for 3 seconds)
latest