add lock object for repo