Remove locking from TypedefEffectiveStatementImpl