stmmac: fix atomicity in pm routines