Rename flush_outdated_host_addresses to clear_host_addresses "flush" can imply writing something out to a file or connection before clearing it; "clear" always means "remove". It's also potentially misleading to say "outdated" here, since the function removes _all_ addresses regardless, not just certain outdated ones. Also, don't free the lock in this function. Also reindent the function.