_write_json_atomic wrote world.json through a fixed "world.json.tmp": an
existing file of that name was overwritten and, when the write failed,
deleted; two builds into one output folder shared it; and its plain
os.replace had no retry for a Windows sharing violation, though the viewer
may hold world.json open during a rebuild.
It now stages through a NamedTemporaryFile in the same folder, as #425 did
for the GLB export, gives the result the mode of the file it replaces
(file_mode.published_mode), and _publish_world passes glb_writer._replace,
the retrying replace the chunks already go through.
tests/test_world_json_atomic.py: four tests fail on main (the sibling is
consumed on success and deleted on failure, two writes share a staging file,
world.json skips the retrying replace); the POSIX mode test runs on Linux.