leak-detective: Register OS X specific hooks just once