Remove unnecessary freeze

* The type will be deep frozen during finalization, so it's fine
  to not freeze here. Plus freezing the local variable is
  unnecessary.