Commit a593afdbeba13d66dc4b39e51ab9330cae15d6e2

Con Kolivas 2011-08-31T13:23:36

Use the curses_lock to protect the curses_active variable and test it under lock.