[userprog] reinstantiate global locking on cleanup...for now