Set queuedUnload correctly when unloading via GC

Signed-off-by: Ross Allan <rallanpcl@gmail.com>