Make preferences safe across multiple processes