changed the order of freeing devices and FS when making loop device, now it succeed every time. And, now making a tmpfs a little bit larger than asked, so we have enough space on it for the loop file