Disable TM learning while TP learning

Fixes https://github.com/numenta/nupic.research/issues/101.