synchronized process when gnugo AI is thinking

fixed issue #120 and #6