fix a deadlock issue when poking "eject" file