strbuf: replace with trinary operator

__builtin_expect does work here