[lldb][NativePDB] Don't turn function-local enums into scoped enums (#244640)
CodeView can't tell a scoped enum from an unscoped enum.
`EnumRecord::isScoped()` was the wrong check: it does not say whether
the enum is an `enum class`. Instead, it says if the type is declared
inside the body of a function.
This patch always creates unscoped enums and adds a new test which fails
without the change.
rdar://192360576