create img test directory
Cant pass locks by value