Add field_write_barrier when an method is defined.

`mrb_field_write_barrier` should be called when an method is defined.

It seems that this is the root cause of [iij-mruby's test failure](http://iij.github.com/mruby/report/iij-mruby-80009e2.html).


It is difficult for me to debug GC...