add backtrace and checklock