Avoid calling freeze on already frozen strings in lib
What does this MR do?
Addresses #66730 (moved)
With reference to https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32377#note_210595407 , this MR removes the unnecessary freeze
calls in lib
directory