locking: Use database iterator for unmarking databases