Bug #67965: Fix blocking behavior in non-blocking crypto streams
Bug #41631: Fix regression from first attempt (6569db8)