REVIEW: fsck(8), fsck_msdosfs(8): make WARNS=6 clean

- add const where required
- add volatile to avoid vfork clobbering
- rename custom perror to perr to avoid namespace clash (via NetBSD)
- rename additional vars to avoid shadowing
- sync fsck_msdosfs(8) to NetBSD, bringing WARNS to 6