UMA_CHAT : Updated "UMA_CHAT" application.

Fixed problems when exiting the application. Use of condition variables
to signal the neighbor manager thread to exit by itself.