lock the uron file for preserving uniqueness of ids