Set lock_path in tests

When lock_path is not set, the synchronized decorator doesn't work
properly.  This change is required so that synchronized can throw
an exception when that happens instead of failing silently.

Change-Id: I341a522e59fda3feb8e41379d06ad3c8f97e5597
Merge "Set lock_path in tests"