add another file lock to avoid singleton

this file lock will avoid singleton pattern in code,
and this file lock will fix the issue __del__ not
called in singleton implementing

Signed-off-by: Gui Chen <gui.chen@intel.com>