SI-7515 Emit final in bytecode for final inner classes.

As we did before a regression in 18efdedfb / SI-5676.

This commit tightens up the condition in which the FINAL
modifier is ommitted; it now *only* does this for the module
classes of nested objects.

Review by @JamesIry