wmiutils: Add locking to the path object.