Move wrapper deadlock checker to higher level.
The current implementation of the deadlock checker is not enough in some workflow configurations.
This issue is to report issues with the new implementation done in !423 (merged).
The version will be available on Monday