gal: new cache lock_atomic_wait() and use it for "gallery_update" lock
gal: smart reindex tree_events
gal: fix input checkbox checked attr (xhtml->html)