checkState() must be called in commit's wait loop to avoid hangs caused by Writer threads death