Fix potential bio race
CR feedback
Merge branch 'inmemoryrepl' into Slowdown

Conflicts:
	src/bio.c