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.