Remove mutex lock in saveNickMap

The mutex is already locked in all places that call it.
Fix data race in isIdentified
Check the length of the right variable

Balically fixing a typo(-ish). Fixes a rare crash.