[feature] switch the lock type of actor to mutex when --enable-debug=yes