host: Fix locking in log.Close()

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>