vald: sched: bug corrections
vald: sched: bug corrections

Corrected bugs found during SP scheduler development. Scheduler
context (pause-resume) handling and drainging is now consistent
over all tests cases. Previously, some test cases returned with
scheduler context locked (didn't pause and drain before exiting
the loop). Added ASSERT_FATALs to limit error propagation, when
test application could not continue correct operation.

Signed-off-by: Petri Savolainen <d528fd253b9aaf78fa72edbcc6249e82047f6ce6@nokia.com>
Reviewed-and-tested-by: Bill Fischofer <52f3c909d51cc5d355a68a403df6906b3c1a8f83@linaro.org>
Signed-off-by: Maxim Uvarov <db4d16e02ae2d7493db430203537da8b2e34f290@linaro.org>

nmorey/odp,mike-holmes-linaro/odp,mike-holmes-linaro/odp,ravineet-singh/odp,nmorey/odp,dkrot/odp,erachmi/odp,ravineet-singh/odp,erachmi/odp,nmorey/odp,mike-holmes-linaro/odp,ravineet-singh/odp,ravineet-singh/odp,erachmi/odp,dkrot/odp,dkrot/odp,erachmi/odp,mike-holmes-linaro/odp,nmorey/odp,dkrot/odp