Ospreys edge Connacht to go top