set permissions so that multiprocessing locks work