change linkage of mrb_str_size to internal

Use RSTRING_LEN to get the length.
Merge pull request #2501 from cremno/static-mrb_str_size

change linkage of mrb_str_size to internal