cpoll: do not call the callback function twice when Socket::doOperation() calls File::doOperation()