chan_dahdi.c: Lock private struct for ast_write().