Add checks to make sure that all osds are up before scrubbin them.

Fixes: #7446