Perform the cancellation of a SelectionKey in a delayed manner during the selection loop only, to prevent concurrency issues (close() could previously be called from outside the selection thread).