vfs: Move __open_2() function to vfs/main.cc

Move __open_2() function to where rest of its family lives in.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>