Fix tag updates

Fix deadlock when tag list is updated.
Add logfile.

Signed-off-by: Paul Brook <paul@nowt.org>