Update launcher.py

Bug in update_modules() in Launcher.py: lock file removed everytime it run and failed to lock. Fixing by checking the lock file outsite the try: finally loop.