Handle the case where there are not enough loop devices available
The script uses loop devices (files such as /dev/loopX) to mount folders. The number of these devices are limited. The script should be able to detect when there are not enough loop devices available and create new ones if necessary.
Note that this was a feature of the original tails-verifier script that can be found in Tails issue #7496.