Mother who kidnapped son gets bail to attend rehab program