Fix bug of slow refreshing time to get the converted image

Hello,

Using this repository to work with Pluslib, Interson Probes using BMode Imaging are not converted properly. Parameters for probes different to GP are not well converted from RAW data. 

I add some lines to fix the problem of converter that was working very slow when raw image is converted using BUILD2D method, now the copy to C++ structure is performed using lock. 

Hope it help to others.


Sorry for all the comments added to understand the behaviour of the uncommented code. I used descriptions from Interson SDK v1.15