My first guess would be a fault (short; bad ground; whatever) in the rear differential lock detection switch or the associated wiring.
On the other hand ... It could be a symptom of a problem with the actual engagement mechanism.
On the other hand ... It could be a symptom of a problem with the actual engagement mechanism.