Rewritten locks in endpoint. Given some threads names