linux: apm: fix retry opening of apm proc file