It works with the beta we are using to build Blender 4.5, but the official release is a bit different. This fix was tested to work with OSL 1.14.7. Thanks to Paul Zander for finding the OSL commit that lead to this. Pull Request: https://projects.blender.org/blender/blender/pulls/144715