5 dekstops? How is wallpaper configured? Each display their own folder? Because that would explain why you only get one. The handler asks the finder's desktop for the path and later it's used to filter the output of lsof with grep. I guess in your case it only returns the first desktop it finds and ingores the others.
What is the unfiltered result of "lsof -p "?