parlib: Add 'timed' functions for sems/mtxs/cvs