engines/io_uring: fix leak of 'ld' in error path