libdpx: Get rid of that sleep(1)