Only use LOG_LOCK in log_flock if a runner is not specified

Fixes issue #3466 - When ansible can't authenticate against a host,
and your answer is no, ansible crash.

There is no need to lock two files when one is available and serves the purpose of protecting the collation of the output stream.