After testing with NodeJS Port it seems that Ruby loader does not work properly, it needs to be thread safe. There are some workarounds to make it run. All of the have been commented in rb_loader_impl.c file.
A new branch has been created for it: https://github.com/metacall/core/tree/hotfix/ruby-loader-thread-safe