[flang] To use the fir::ClassType for namelist item if it is local polymorphic entity. (#162701)
This patch is to use the namelist item descriptor instead of creating a
temporary one when the item is a local polymorphic entity so it's
dynamic type is preserved.
Fixes #152527
Fixes #154130