get indexer to run in reverse, refine locking a bit

Conflicts:
	src/ydb_write.cc