bugfix: mqueue's num_active/free was not updated correctly.
a workaround commit