Sri Lanka PM takes over law and order after vote defeat