WordPress at a glance
function is not described

wp_refresh_post_lock() WP 3.6.0

Check lock status on the New/Edit Post screen and refresh the lock

No Hooks.

Return

Array. The Heartbeat response.

Usage

wp_refresh_post_lock( $response, $data, $screen_id );
$response(array) (required)
The Heartbeat response.
$data(array) (required)
The $_POST data sent.
$screen_id(string) (required)
The screen id.

Code of wp refresh post lock: wp-admin/includes/misc.php VER 5.1.1

<?php
function wp_refresh_post_lock( $response, $data, $screen_id ) {
	if ( array_key_exists( 'wp-refresh-post-lock', $data ) ) {
		$received = $data['wp-refresh-post-lock'];
		$send     = array();

		if ( ! $post_id = absint( $received['post_id'] ) ) {
			return $response;
		}

		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			return $response;
		}

		if ( ( $user_id = wp_check_post_lock( $post_id ) ) && ( $user = get_userdata( $user_id ) ) ) {
			$error = array(
				'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ),
			);

			if ( $avatar = get_avatar( $user->ID, 64 ) ) {
				if ( preg_match( "|src='([^']+)'|", $avatar, $matches ) ) {
					$error['avatar_src'] = $matches[1];
				}
			}

			$send['lock_error'] = $error;
		} else {
			if ( $new_lock = wp_set_post_lock( $post_id ) ) {
				$send['new_lock'] = implode( ':', $new_lock );
			}
		}

		$response['wp-refresh-post-lock'] = $send;
	}

	return $response;
}