better handling of queue msgs
add missing AST_LIST_HEAD_INIT
fix race condition in sccp_server_destroy

The race condition it fix was statistically very rare; by using a condition
variable, it was possible that sccp_server_destroy returned before all
the sessions threads were really terminated, and if the module was
unloaded while a session thread was not terminated, it could cause a
crash.