Implement Kernel#define_singleton_method