Set the permissions mask to user-only when writing the key. (Not Windows.)