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 @tjfountaine @bnoordhuis.

Should fix windows jenkins build.