Don't call site_nodes_sync from apm_package_rename. site_nodes_sync rebuilds the entire site_nodes cache, which takes large sites, such as .LRN sites with tens of thousands of site nodes, completely offline for several minutes. Instead, update the cache for the specific node(s) at which the package is mounted.