If you can fix the uid/gid values you can use these in the mount command – they don’t have to relate to an existing user/group
I do this with a user that is later created by puppet using fixed (matching)uid / gid values
config.vm.synced_folder "foo", "/var/www/foo",
id: "foo", :mount_options => ["uid=510,gid=510"]