core/util: Add delay() method