HBASE-12565 Race condition in HRegion.batchMutate() causes partial data to be written when region closes

Signed-off-by: stack <stack@apache.org>