Add missing lock
Merge pull request #22 from Dr15Jones/lockTMethodCallReturnType

Add missing lock.