lock guard version for 1.8