entry.c: convert checkout_entry to use strbuf