make can_transform actually do something

Up to now these functions never waited for a transform.
The sleep loop's condition was broken and the sleep code itself
as well.
Merge pull request #58 from v4hn/hydro-devel

Fix the can_transform design flaw at the other end.