NXDRIVE-164: Optimize mark_unknown_local_recursive