This avoids the message "Too many displays in use" when they are released directly, rather than via release_displays().