tests: Increase timeouts for tests using vagrind

Some tests (eg. test_write_and_read) indicate that the time needed to
run a test using valgring is rougly 10 times bigger than the time when
valgrind is not used. Increase the timeout multiplier in valgrind.sh
from 5 to 10 to address this.