Take context into accont when searching for prodlots

The current implementation of _stock_search returns prodlots from every location.
This proposal makes it context-sensitive, so that it can be limited to a subset of locations and/or products.
Same remark than for locations