List active threads and locks on shutdown