I've never managed to get enough access to lock the tensioner with the engine in the car so just push and hold it while removing/replacing the belt.
I tend to use a longer spanner linked to a 15mm spanner to get better leverage.
I tend to use a longer spanner linked to a 15mm spanner to get better leverage.