time: Use wait4 instead of wait3

Lollipop doesn't have wait3 anymore

Change-Id: I370532c9948ad352fd2e36bd0073df71deef89e8