worker lock: consider that multi thereads use same file lock
- worker lock: use lock file to prevent conflict between emulator manager processes (ui and cli)
- 'create base image' job will take long time(30 ~ 60 seconds), so spearate this job to other thread
- problem1: this job has lock file during long time, other job will be wait...
--> use property-name.lock file for this job
--> release worker lock after to create property-name.lock file
- problem2: if multi threads use same lock file,
java throw OverlappingFileLockException when already locked file by other thread (by same JVM)
-> wait for release lock
Change-Id: I1cb43ff3631be005208d86979c837032d6029fd8
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>