CALL: implement /wait on POSIX platforms

This fixes CureCode issue #1861.