lthread_socket.c: Fixed lthread_close()

Clear EOF bit for the calling thread if it is set