ubi: Fix race condition between ubi volume creation and udev