submodule: port submodule subcommand 'status' from shell to C