Fixes locking check on tree collection, will speed things up a little