Changed locking mechanisms for makechrootpkg-compat