[MacPorts] #48361: portpatch.tcl : record each applied patchfile in the state file (and skip already applied patches)