Lock the mex file to avoid Matlab crashes.

Commands like "clear all" and "clear function" causes segmentation faults or errors like these (especially after an 'init'):
 libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: caffe/proto/caffe.proto
 libprotobuf FATAL google/protobuf/descriptor.cc:862] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
 [libprotobuf ERROR google/protobuf/message.cc:333] Type appears to be in generated pool but wasn't registered: caffe.LayerParameter
 Attempt to restart MATLAB?
To avoid these, lock the the mex file.
Display averaged loss over the last several iterations
fix warning
Changed "blas" to "openblas"

The change was made because openblas has to be linked as "-lopenblas" and not "-lblas". This caused an error when compiling.
Merge pull request #1147 from savy-91/patch-1

Changed "blas" to "openblas"
Update layer_factory.cpp
tweak test case to expose bug.
update HDF5 layer test data.
fix hdf5 data layer bug
cudnn pooling fallback option
const fix
Merge pull request #1161 from jjkjkj/dev-threshold-fix

Fix Threshold layer
message
Merge pull request #1172 from Yangqing/conv_factory

Pooling factory
running factory.
more docs
Pre-lunch fun: add a dynamic library guard test.
Add back static library. Using -Wl,--whole-archive will allow us to preserve all symbols.
Mute factory registration message
cmake.