SI-6622 Emit EnclosingMethod attribute for val-nested classes

Otherwise, Java reflection reports them as member classes. This
in turn causes Scala reflection to fail to conjure a class symbol
for them.

We use the corresponding getter method as the enclosing method.

Review by @JamesIry, @xeno-by