There is no flock or similar command for Solaris. If I want to do simple locking I use mkdir as it's a monatomic operation and avoids potential race conditions with the usual check files exists/touch combination.
mkdir /tmp/lockfile &>/dev/null
if [[ $? -ne "0" ]]
then
    echo "Lock exists exiting"
    exit 1
fi