Ensure correct permissions on gear registry file

Need to make sure the permissions are correct after the atomic write.