Implements #945 (closed).
This branch removes the portlocker library, and instead, it uses a new implementation without relying on libraries.
This fixes the issue where the experiments could run multiple times, see the test to know how to use it, but it is similar to the portalocker ( use it with the with statement )
Ready to review @bdepaula @egarriga, I don't know how much work you have right now as I was on holiday if nobody assigns itself I'll assign later one of you, thanks!.