Adds ApplyResult.discard and missing Pool._process_by_pid