Fixed deadlock in getname()