various leak and valgrind fixes in mon, osd, monclient