Kondo effect in a quantum dot coupled to ferromagnetic leads and side-coupled to a nonmagnetic reservoir