FIX: add mutexes to protect curses call such as "post_menu" and doupdate as they are not thread safe

Also remove the calls to update the panels at every key pressed (still called for key down/up)