osd, mds: shut down async signal handler on exit

Signed-off-by: Sage Weil <sage@inktank.com>