ubox: fix open() error handling (#21826)