metastore concurrency fix.