Goalkeeper Ahmed Abdulrasool scored the winner against Iraq to help Bahrain reach the last eight in Thailand.