Update Relation::Variable to be thread-safe