added stacktrace.h to distlock.cpp