Fix atomic_add_unless. Fix ram_console write return value. Add initrd free