Fix: Improved update lock

Signed-off-by: Miroslav Safr <Miroslav.Safr@gmail.com>
Fix: syntax error

Signed-off-by: Miroslav Safr <Miroslav.Safr@gmail.com>
New: script testing in rpmbuild

Signed-off-by: Miroslav Safr <Miroslav.Safr@gmail.com>