scsi: ufs: introduce common and flexible delay function