Update allowed_hosts conditional statement

In the origin quantum::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in quantum::db::mysql.

There are two cases to pass $allowed_hosts to $real_allowed_hosts:

   - If $allowed_hosts is array,then remove $host from $allowed_hosts;
   - elsif $allowed_hosts is string and not equivalent to $host;

At last, if $real_allowed_hosts is not undef, then run
quantum::db::mysql::host_access

Fix bug 1206444

Change-Id: I4c7aef5b7c002c799e8c78fc45dfc3362d41d6ee
Merge "Update allowed_hosts conditional statement"