Make common methods threading safe. pytest enhancements

Change-Id: Iaacf38c9bb9c31fc521cbde48acd0d6a9cb9a56d
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/osm_common/tests/test_fslocal.py b/osm_common/tests/test_fslocal.py
index 3a2bbb4..86b0491 100644
--- a/osm_common/tests/test_fslocal.py
+++ b/osm_common/tests/test_fslocal.py
@@ -22,9 +22,9 @@
     return '/#tweeter/'
 
 
-@pytest.fixture
-def fs_local():
-    fs = FsLocal()
+@pytest.fixture(scope="function", params=[True, False])
+def fs_local(request):
+    fs = FsLocal(lock=request.param)
     fs.fs_connect({'path': valid_path()})
     return fs