sdm: Conditionally allow asynchronous doze transition.

Doze state transition need to be coupled to refresh if previous cycles/
transitions pushed app buffer content.
Power off is coupled to flush, so refresh can be avoided.

CRs-Fixed: 2391984
Change-Id: I94b0dabaa66a0c7a5d3a53903adebcd41547be1a
3 files changed