Add a regression test derived from sys/cam/cam.c.

This causes a TESLA crash with a particular TESLA build on zenith, but not elsewhere. Slightly worrying.