builtin-commit: refactor short-status code into wt-status.c