src: create BaseObject with node::Realm
BaseObjects are wrappers around JS objects. These objects should be created in a node::Realm and destroyed when their associated realm is cleaning up.
BaseObjects created in a realm should also be serialized associated to that realm when creating the startup snapshot.