I will glue/secure with screws a decorative wood blocking upside down on the underside of the 12" overhang such that it is within 6 " of the edge, and mount a surface box onto the outside face of that. Strickly speaking, this is still a violation since the specified code does not actually state that the outlet must not be within 6" of the edge, but rather the overhang must not be more than 6". However, the local inspectors seem to like my fix and have always passed it with a pat on the back.