So you're saying that if the name field is empty and the "readonly" checkbox is checked, then the name field shouldn't be made readonly? What should happen to the other fields in the section in that case? Should they also not become readonly? If it is just the name field that should not be readonly in that case, you'll need to move that expression from the section the fields, and have the same expression for all the fields, except the name field.
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet