Use locking to prevent using a ports tree that is being updated.