Fix for Reusing Cached Generated Primary Key

https://github.com/jruby/activerecord-jdbc-adapter/issues/416