Give names to bmtx locks and introduce a bmtx_dump().

The name of the lock is saved on p_wmesg in case the process is
waiting for the lock.