A Queueing Network Model for Measuring Two-Phase Locking Overhead