dpif: Add new functions dp_run() and dp_wait().