scsi: ufs: core: Capture command trace only for the cmd != NULL case