Fix checking of return values from osl_open().