ctdb-tests: Add improved PID file check to test2