Nigerian security forces have rescued 39 schoolchildren and five teachers abducted nearly two months ago in Oyo state.