delay accessing misc partition until its device exists
delay accessing misc partition until its device exists

When the misc partition is on an emmc device, recovery can get started
and try to access it before the kernel has actually created the
device.  Try statting the device before reading or writing it; delay
up to 10 seconds waiting for the device to exist.

Change-Id: I988442d5701394d7152bfab3c571e7548c364f61

randomblame/bootable_recovery,InsomniaAOSP/platform_bootable_recovery,Plain-Andy/android_platform_bootable_recovery,kylinmoddev/android_bootable_recovery,76Demented/bootable_recovery-,InsomniaAOSP/platform_bootable_recovery,76Demented/bootable_recovery-,DerTeufel/dualboot_recovery,kylinmoddev/android_bootable_recovery,randomblame/bootable_recovery,Plain-Andy/android_platform_bootable_recovery,76Demented/bootable_recovery-,kylinmoddev/android_bootable_recovery,Plain-Andy/android_platform_bootable_recovery,kylinmoddev/android_bootable_recovery,Plain-Andy/android_platform_bootable_recovery,randomblame/bootable_recovery,InsomniaAOSP/platform_bootable_recovery,DerTeufel/dualboot_recovery,randomblame/bootable_recovery,76Demented/bootable_recovery-,DerTeufel/dualboot_recovery,InsomniaAOSP/platform_bootable_recovery,DerTeufel/dualboot_recovery,DerTeufel/dualboot_recovery,randomblame/bootable_recovery,InsomniaAOSP/platform_bootable_recovery,76Demented/bootable_recovery-