host/logbuf: Fix race on closed flag

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>