Revert "Merge pull request #18003 from sikachu/permit_all_parameters-thread-safety"

This reverts commit da5cc10e945552da54234f858470238a3fc36767.

Fixes #18091

See also https://github.com/rails/rails/pull/18003#commitcomment-9030909