osd: move osd_stat tracking into OSDService; fix minor bug