core: Make ostree_write_variant_with_size() private

More work making the file formats and utilities private.
core: Make a helper function private

Nothing was using this, so make it private.
core: Remove unused prototypes