make product's file path cache thread-safe

This cache is accessed from multiple threads.

Change-Id: I85f8d2a08215bd5d7478ae862ff611deaa07d400
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>