In tests it can happen that properties are manipulated in parallel. Thus we have to lock the java property manipulation to avoid JPS issues.