[hddmanager] fix swap on startup, small optimization