ACPI / PM: Introduce function for refcounting device power resources