fix .getLocalJSON race condition

may not be fully written to disk yet