improved rowkey serializer unit test and fixed locking problem in h2