crypto: change assertion to condition in bio

Read head can be the same as write head, even if there's some data to
read.

/cc @tjfontaine @bnoordhuis.

Should fix windows jenkins build.