add missing duchain locks
Build uses for static strings that reference class name

In scripting languages class names are often passed around as
strings. This patch will build uses for such a string if a class declaration exists.

Eclipse also does this and it's quite useful to work with.

REVIEW: 113787