Working garabge collection locking