Add new helper function for attaching newly scanned dentry tree