diff --git a/main/utils.c b/main/utils.c
index 79bfd5306adda34f24b6e0cc173ad65239ecc116..49e559da9494ce459387aba9d859e24c266302fd 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -520,7 +520,7 @@ static int dev_urandom_fd;
 #ifdef DEBUG_THREADS
 
 /*! \brief A reasonable maximum number of locks a thread would be holding ... */
-#define AST_MAX_LOCKS 16
+#define AST_MAX_LOCKS 32
 
 /* Allow direct use of pthread_mutex_t and friends */
 #undef pthread_mutex_t