How does lock protection work on HVAC fan

The mpu detect the rpm and if no match it will stop the motor
how to differentiate if it is from a bad motor or a bad mpu circuitry  

Find out how its detecting speed - there is probably a sensor somewhere near the motor, or the edge of the fan.