Do Code Models Suffer from the Dunning-Kruger Effect?