I gave a dupe the apprentice mining job and left them alone for a while. They eventually reached 250 experience, 100% mastery. But they didn't get the mastery certification. I tried changing her job back and forth to see if changing hats and performing another job would fix the issue, but it didn't.
I don't know how to reproduce the error.