mrb: add Database#locked?