We unwrap conditional expressions containing try-lock functions.
Additionally we don't branch on conditionals, since that is usually not
helpful. When joining the branches we would almost certainly get a
warning otherwise.
Hopefully fixes an issue that was raised in D52398.