Fix init-ceph error when firstly starting OSD

close bug #7222

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>