Under the hood
The plugin bucket-root quarantine check is memoized so it doesn't redo directory work on every sync.
The plugin bucket-root quarantine check, which quarantines an unmarked plugin bucket directory, has been extracted from the sync routine into a helper named ensureBucketRoot that memoizes itself per plugins-sync state, avoiding repeated directory-quarantine work on every sync call.