Protect BMM_DUMP with the global mutex

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>