[MacPorts] #16234: portindex should be atomic