This happens due to huge accumulation of logs.
Here is the way to fix above folder lock issue: Modify the logging to only keep the last 3 files, system config> service
control > manage directory put a check box, and select keep the last 3
files. Restart, and the upgrade should then work.
If the above still does not work, then it means you have too many old logfiles.
If you have too many old log files, need to clear out the "Local Logging
Configuration" logs: System Configuration --> Logging --> %log file type% --> Log Fle Management
--
> manage directory put a check box, and select keep the last 3 files.
IMPORTANT
If you want to keep all the log files, then you may want to save them manually and then delete them from the installation folders and then do the upgrade and then move them back
Goto: \Logs and save the files
Regards,
~JG
Do rate helpful posts