Use switch statement for bufferOwnership inside StringImpl destructor, instead of multiple if checks.
Pull request: https://github.com/WebKit/WebKit/pull/11383
https://commits.webkit.org/261542@main