Fix recursive try_lock and ABMs