Implemented ramdisk locking