The clone syscall allows you to fork a thread with varying levels of sharing. Usually a thread library will share almost everything and a process fork will share almost nothing, but those aren't the only choices. Yu can choose, say, to duplicate the memory map but share the file descriptor table.
The kernel is a global lock on shared (hardware) resources and stuff like pipe buffers. It is also a library of hardware drivers. Calling the kernel just happens to be termed calling the system "syscall".
From this perspective the BEAM VM or the language run-time are also "kernel".