Fix bug of closing flag of NioSocketAcceptor.