More than 20 people have been killed in blasts targeting security buildings in the northwest Syrian city of Idlib.