New code from lwip project

lwip repo:
a883fe7 sockets.c: fixed assert check after changing type of sock->select_waiting to unsigned