[RocksJava] -WShadow improvements

Minor corrections to resolve -WShadow build problems with RocksJava code.