io_uring/rsrc: refactor io_queue_rsrc_removal