this works well for ZODB. How do you lock zep's database?

www.mysqlperformanceblog.com/2012/03/23/how-flush-tables-with-read-lock-works-with-innodb-tables/