lang/spl: patch and unbreak with -fno-common
PR: 257295 (cherry picked from commit f11e9f154140bf1d042a9f7fce069e21c3eda2b7)