How to debug a deadlock in Rust?