Make sure the outer dir exists before checking for lock dir.

Previously this would cause failure until the main checkupdates-cron
directory existed, as mkdir would refuse to create the higher directory.