To unlock Expert Staff ghost data in Time Trial mode, you usually need to beat your regular staff ghost by several seconds. Once you improve enough, a faster expert ghost appears. You then need to race against and beat that new ghost to complete the challenge.