add simple locking mechanism for build