Fix a couple more issues exposed by wholecfg region selector

Summary: - traceEnd() should only be called in Trace mode, since the last region block may not be a region exit

- allow tracked local types to become Bottom in FrameState

- don't try to pre-optimize LdLocs with incompatible types

Reviewed By: @swtaarrs

Differential Revision: D1601028