[MacPorts] #31056: Locking somewhat broken in MacPorts 2