flash: fix protect check for pic32mx1x/2x family