Fix undefined STPid
Fix undefined STPid

Server transactions are not started for ACKs since they are not real
requests. Check STPid for validity before linking and unlinking.

bernardd/yxa,bernardd/yxa,bernardd/yxa,bernardd/yxa