change sql_state to attr_reader to avoid ruby warning

this patch will remove this warning 
```
mysql2-0.3.16/lib/mysql2/error.rb:22: warning: method redefined; discarding old sql_state=
```