let try_lock shared (id, scope) =
    (get_scoped shared scope).try_lock id