ensure thread holds osd lock before enqueue to peering_wq

http://tracker.ceph.com/issues/10431 Fixes: #10431
Signed-off-by: Dong Lei <leidong@yahoo-inc.com>