(write_locales): Disable implicit locking for the stream.