Don't update ModDetails with CafInfos when opts are disabled
This is consistent with the interface file behavior where we omit HsNoCafRefs annotations with -fomit-interface-pragmas (implied by -O0).
Not doing this is causing a bug in !2842 (closed) which is fixed by this change. I don't understand how exactly this causes a bug though. Would be good to investigate more before merging this.