ramoops: move spin_lock_init after kmalloc error checking