LJ::may_lock — see if we could get a MySQL lock on a given key/dbrole combination, but don't actually get it.
LJ::may_lock(db, dbrole);
LJ::may_lock(
)
db.
dbrole. the role this lock should be gotten on, either 'global' or 'user'.
cgi-bin/ljdb.pl
undef if called improperly, true on success, die() on failure