Respond with resource errors on enqueue failures.

It seems that downstream write errors are not resource errors, so only
send back resource errors on engine_t::enqueue() exceptions.