Add initial implementation of `dup2` system call

Add initial implementation of `dup2` system call. Currently we expect to
have an open file descriptor to clone into
Add userspace test program for dup2 system call