Fixed thread-safety of ClassBasedRowReader.