Avoided deadlock when creating a crate