osd: unify sources of no{up,down,in,out} flags into singleton helpers
Currently there are various ways to set no{up,down,in,out} flags,
by osd, by crush node, or by device class.
Use traditional is_no{up,down,in,out} helper to catch-all,
and add special wrappers for certain internal consumers.
This way osd won't ignore the noup flag set by the new crush node,
device class, or any future sources.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit
9d11a3a1c96edd4f38f4584ce76febf920763883)
Conflicts:
slight conflict from the "Remove dependence on 'using namespac'" change,
see https://github.com/ceph/ceph/pull/27255