[matter.builder] acquire a file lock before calling PackageBuilder.sync()