Add thread create and thread join system calls