Changed ast_channel lock into a memory barrier to prevent deadlock with lock in asterisk_setWriteFormat (Reported by Alena Juk)

git-svn-id: https://svn.code.sf.net/p/chan-sccp-b/code/trunk@5424 43c1dc8c-776e-4df2-8ef1-6e829299be21