[PATCH v6 13/27] util/log: add missing error reporting in qemu_log_trylock_with_err