[Bug 373165] New: implement finer grained locking mechanism for package management