lua: subprocess: move to osdep/subprocess-{win,posix}.c

The subprocess code was already split into fairly general functions,
separate from the Lua code. It's getting pretty big though, especially
the Windows-specific parts, so move it into its own files.