qemu-timer: allow freeing a NULL timer