If your form contains logic that checks to see if it is read-only (thisXDocument.IsReadOnly), there is an issue with Outlook where InfoPath will report false positives depending on your Outlook cache settings.
Most of the time, it doesn't make sense to call IsReadOnly for an attachment, so the workaround would be to determine if your code is ...