Added lock()/unlock() to send/recv() functions.
Don't know if that explicti lock-unlock can cause troubles.
Don't know if add more lock/unlock to other methods like
listener-thread-main(), bind(), connect().
minor edit