PM / sleep: fix device reference leak in test_suspend