Added locks to spellchecker thingy